Socket
Socket
Sign inDemoInstall

@amplitude/analytics-types

Package Overview
Dependencies
Maintainers
21
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplitude/analytics-types


Version published
Weekly downloads
651K
decreased by-2.01%
Maintainers
21
Weekly downloads
 
Install size
Created

Package description

What is @amplitude/analytics-types?

@amplitude/analytics-types is a TypeScript package that provides type definitions for Amplitude's analytics library. It helps developers integrate Amplitude's analytics capabilities into their TypeScript projects by providing type safety and autocompletion features.

What are @amplitude/analytics-types's main functionalities?

Event Tracking

This feature allows you to define and track events with specific properties. The type definitions ensure that the event object adheres to the expected structure.

import { Event } from '@amplitude/analytics-types';

const event: Event = {
  event_type: 'user_signup',
  user_id: 'user_123',
  event_properties: {
    plan: 'premium'
  }
};

User Identification

This feature allows you to identify users and set their properties. The type definitions help ensure that the user identification object is correctly structured.

import { Identify } from '@amplitude/analytics-types';

const identify: Identify = {
  user_id: 'user_123',
  user_properties: {
    $set: {
      email: 'user@example.com',
      plan: 'premium'
    }
  }
};

Group Identification

This feature allows you to identify groups and set their properties. The type definitions ensure that the group identification object adheres to the expected structure.

import { GroupIdentify } from '@amplitude/analytics-types';

const groupIdentify: GroupIdentify = {
  group_type: 'company',
  group_name: 'company_123',
  group_properties: {
    $set: {
      industry: 'tech'
    }
  }
};

Other packages similar to @amplitude/analytics-types

Readme

Source

@amplitude/analytics-types

Shared types used for Ampilitude Analytics Typescript packages

FAQs

Package last updated on 13 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc